package TrafficSim;

import java.util.Vector;

public class vehicleTestneu {
	private static Vector<Intersection> intersections = new Vector<Intersection>();
	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Intersection I1 = new Intersection(1,10,10);
		Intersection I2 = new Intersection(2,250,10);
		intersections.add(I1);
		intersections.add(I2);
		I1.appendStreet(I2, new Street(80));
		I2.appendStreet(I1, new Street(50));
		for (Intersection i : intersections){
			i.sort();
		}
		Vehicle v = new Vehicle(2.0f, 20.0f, 2.0f, intersections);	
//		System.out.println(v.posNew);
//		v.posNew.set(v.testcalcPosAccSpeed());
//		System.out.println(v.posNew);
//		v.posNew.set(v.testcalcPosAccSpeed());
//		System.out.println(v.posNew);
//		v.posNew.set(v.testcalcPosAccSpeed());
//		System.out.println(v.posNew);
//		v.posNew.set(v.testcalcPosDecSpeed());
//		System.out.println(v.posNew);
//		v.posNew.set(v.testcalcPosDecSpeed());
//		System.out.println(v.posNew);
//		v.posNew.set(v.testcalcPosDecSpeed());
//		System.out.println(v.posNew);
//		System.out.println(v.calcSpeed());
//		System.out.println("beschl!");
//		v.posNew.set(v.testcalcPosAccSpeed());
//		System.out.println(v.posNew);
//		v.posNew.set(v.testcalcPosAccSpeed());
//		System.out.println(v.posNew);
		
	
	}

}
